package com.ex.orage2app;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

public class ProductdetailActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_productdetail);

        Intent intent=this.getIntent();
        Bundle bundle=intent.getExtras();
        String productname=bundle.getString("productname");
        String productprice=bundle.getString("productprice");
        Integer productimg=bundle.getInt("productimg");
        ImageView category_product_image=findViewById(R.id.category_product_image);
        TextView category_product_name=findViewById(R.id.category_product_name);
        TextView category_product_price=findViewById(R.id.category_product_price);

        category_product_image.setImageResource(productimg);
        category_product_name.setText(productname);
        category_product_price.setText(productprice);
    }

}